﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using saigonbook.Biz;

namespace hethongbansach.Controllers
{
    public class loaisachController : Controller
    {
        public List<BIZ_loaisach> danhsachloaisach = new List<BIZ_loaisach>();

        public void dsloaisach()
        {
            danhsachloaisach.Clear();
            danhsachloaisach = BIZ_loaisach.Select_loaisach();
        }

        //
        // GET: /loaisanpham/

        public ActionResult Index()
        {
            return View();
        }

        [ChildActionOnly]
        public ActionResult Menu()
        {
            dsloaisach();
            return PartialView(danhsachloaisach);
        }

        [ChildActionOnly]
        public ActionResult Menutimkiem()
        {
            dsloaisach();
            return PartialView(danhsachloaisach);
        }
    }
}
